import request from "@/utils/request";

export function category_index(params) {
  return request({
    url: "/category/index",
    method: "get",
    params
  });
}

export function category_delete(data) {
  return request({
    url: "/category/delete",
    method: "post",
    data: data
  });
}

export function category_deleteBefore(data) {
  return request({
    url: "/category/deleteBefore",
    method: "post",
    data: data
  });
}

export function category_add(data) {
  return request({
    url: "/category/add",
    method: "post",
    data: data
  });
}

export function category_edit(data) {
  return request({
    url: "/category/edit",
    method: "post",
    data: data
  });
}

export function category_use(data) {
  return request({
    url: "/category/use",
    method: "post",
    data: data
  });
}

export function category_list(params) {
  return request({
    url: "/category/list",
    method: "get",
    params
  });
}

export function category_dieDelete(data) {
  return request({
    url: "/category/dieDelete",
    method: "post",
    data: data
  });
}
